package com.example.common.feign;

import com.example.common.result.R;
import org.springframework.stereotype.Component;
import java.math.BigDecimal;

@Component
public class OrderFeignClientFallback implements OrderFeignClient {
    
    @Override
    public R getOrder(Long id) {
        return R.error("获取订单信息失败，服务降级");
    }
    
    @Override
    public R getOrderByOrderNo(String orderNo) {
        return R.error("获取订单信息失败，服务降级");
    }
    
    @Override
    public R createOrder(Long userId, BigDecimal amount) {
        return R.error("创建订单失败，服务降级");
    }
}
